package com.example.dnfgamercommunitybackend.dao;

import com.example.dnfgamercommunitybackend.entity.Article;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleDao {

    int insertArticle(Article article);

    int deleteArticleById(int id);

    int updateArticle(Article article);

    int addLike(int articleId);

    int cancelLike(int articleId);

    Article getArticleDetail(int articleId);

    List<Article> getAllArticle();

    List<Article> getUserArticleByUserId(int i);

    List<Article> getArticleByKeyword(String keyWord);
}
